home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / TCL⁄C 1.1.2 Update.cpt / THINK C 5.0 Folder / THINK Class Library 1.1 / TCL 1.1 Doc / OOP page 313
Text File  |  1991-08-27  |  2KB  |  72 lines

  1. ResolveFileAlias
  2. ----------------
  3. procedure ResolveFileAlias;
  4. void ResolveFileAlias (void);
  5.  
  6. If the file specification is an alias, resolve it. 
  7.  
  8. OPEN AND CLOSE METHODS
  9. =======================
  10.  
  11. Open
  12. ----
  13. procedure Open (permission: SignedByte);
  14. void Open (SignedByte permission);
  15.  
  16. Open the file with the specified permission. This method does nothing.
  17. Subclasses must override this method. For an example of how to write an Open
  18. method, see CDataFile and other descendants of this class.
  19.  
  20. Close
  21. -----
  22. procedure Close;
  23. void Close (void);
  24.  
  25. Close this file. This method does nothing. Subclasses must override this
  26. method.
  27.  
  28. ACCESSING METHODS
  29. =================
  30.  
  31. GetName
  32. -------
  33. procedure GetName (var theName: Str63);
  34. void GetName (Str63 theName);
  35.  
  36. Get the name of the file.
  37.  
  38. GetFSSpec
  39. ---------
  40. procedure GetFSSpec (var aFileSpec: FSSpec);
  41. void GetFSSpec (FSSpec *aFileSpec);
  42.  
  43. Get an FSSpec record for this file.
  44.  
  45. ExistsOnDisk
  46. ------------
  47. function ExistsOnDisk: Boolean;
  48. Boolean ExistsOnDisk (void);
  49.  
  50. Returns TRUE if there’s an existing file that matches the current
  51. specification.
  52.  
  53. GetMacFileInfo
  54. --------------
  55. procedure GetMacFileInfo (var fileInfo: FInfo)
  56. void GetMacFileInfo (FInfo *fileInfo);
  57.  
  58. Return the Finder information for this file. The information includes the
  59. file’s type, creator, and icon position.
  60.  
  61. FILING METHODS
  62. ==============
  63.  
  64. CreateNew
  65. ---------
  66. procedure CreateNew (creator, fType: OSType);
  67. void CreateNew (OSType creator, OSType fType);
  68.  
  69. Create new file with the specified creator and file type. This method uses the
  70. name and volume information you set up with one of the specification methods.
  71. You can use the application signature in gSignature for the creator. 
  72.